import {
  Button,
  Input,
  RangePicker,
  Select,
  FormInstance,
  Textarea,
  DatePicker,
} from 'ant-design-vue'

export const formBuyParams = [
  {
    label: '外销金额',
    name: 'exportPrice',
    component: Input,
    type: 'Input',
    width: '180px',
    placeholder: '请输入外销金额',
    rules: [{ required: true, message: '请输入外销金额' }],
    children: [
      {
        name: 'exportCurrencyType',
        component: Select,
        type: 'Select',
        width: '90px',
        style: { marginLeft: '10px' },
        options: [
          { label: '人民币', value: '1' },
          { label: '美元', value: '2' },
          { label: '欧元', value: '3' },
        ],
      },
    ],
  },
  {
    label: '外汇率',
    name: 'foreignExchangeRate',
    component: Input,
    type: 'Input',
    suffix: '%',
    placeholder: '请输入外汇率',
  },
  {
    label: '核算人民币',
    name: 'calculateRmbPrice',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请输入核算人民币',
    rules: [{ required: true, message: '请输入外销金额' }],
  },
  {
    label: '采购价',
    name: 'procurePrice',
    component: Input,
    type: 'Input',
    placeholder: '请输入采购价',
  },
  {
    label: '服务费比例',
    name: 'serviceChargePercent',
    component: Input,
    type: 'Input',
    suffix: '%',
    placeholder: '请输入服务费比例',
  },
  {
    label: '服务金额',
    name: 'servicePrice',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请输入服务金额',
  },
  {
    label: '购销差',
    name: 'purchaseSalesGap',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请输入购销差',
  },
  {
    label: '货代费',
    name: 'freightForwardingFee',
    component: Input,
    type: 'Input',
    placeholder: '请输入货代费',
  },
  {
    label: '报关费',
    name: 'customsCharges',
    component: Input,
    type: 'Input',
    placeholder: '请输入报关费',
  },
  {
    label: '垫税利息',
    name: 'advanceTaxInterest',
    component: Select,
    type: 'Select',
    options: [
      { label: '1%', value: '1' },
      { label: '10%', value: '10' },
    ],
    placeholder: '请输入垫税利息',
  },
  {
    label: '退税额',
    name: 'taxRefundAmount',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请输入退税额',
  },
  {
    label: '垫税金额',
    name: 'advanceTaxAmount',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请输入垫税金额',
  },
  {
    label: '垫资方',
    name: 'fundingProvider',
    component: Input,
    type: 'Input',
    placeholder: '请输入垫资方',
  },
  {
    label: '其他费',
    name: 'ortherPrice',
    component: Input,
    type: 'Input',
    placeholder: '请输入退税额',
  },
  {
    label: '能否覆盖',
    name: 'isCover',
    component: Input,
    type: 'Input',
    disabled: true,
    placeholder: '请选择能否覆盖',
  },
]
